package com.baixun.gasentity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(description = "报警趋势信息，包含日期和总报警数量")
public class AlarmTrendVO implements Serializable {

    @ApiModelProperty(value = "日期（横坐标）", example = "2023-10-14")
    private String date;

    @ApiModelProperty(value = "总报警数（纵坐标）", example = "250")
    private int totalAlarmCount;

    // 默认构造函数
    public AlarmTrendVO() {}

    // 带参构造函数
    public AlarmTrendVO(String date, int totalAlarmCount) {
        this.date = date;
        this.totalAlarmCount = totalAlarmCount;
    }
}
